package com.yyy.dm.consumer.controller;

import com.yyy.dm.CommonResponse;
import com.yyy.dm.consumer.service.CinemaSeatConsumerService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/item")
public class CinemaSeatConsumerController {
    @Resource
    private CinemaSeatConsumerService cinemaSeatConsumerService;

    @PostMapping("/seat/getSeatList")
    public CommonResponse getSeatList(@RequestBody Map<String,Long> param){
        return cinemaSeatConsumerService.getSeatList(param.get("cinemaId"));

    }
}
